/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package midlet;

import javax.microedition.lcdui.*;
import javax.microedition.lcdui.game.*;

/**
 * @author Douglas
 */
public class GameDesign {

    //<editor-fold defaultstate="collapsed" desc=" Generated Fields ">//GEN-BEGIN:|fields|0|
    private Image cenario;
    public int matinhoAguaseq001Delay = 350;
    public int[] matinhoAguaseq001 = {27, 28, 29, 30, 31};
    public int trapHorizontalseq001Delay = 2000;
    public int[] trapHorizontalseq001 = {5, 72, 73};
    public int trapVerticalseq001Delay = 2000;
    public int[] trapVerticalseq001 = {6, 74, 75};
    private Sprite warrior;
    public int warriorUpSeqDelay = 150;
    public int[] warriorUpSeq = {31, 32, 31, 33};
    public int warriorDownSeqDelay = 150;
    public int[] warriorDownSeq = {34, 35, 34, 36};
    public int warriorRightSeqDelay = 150;
    public int[] warriorRightSeq = {37, 38, 37, 39};
    public int warriorLeftSeqDelay = 150;
    public int[] warriorLeftSeq = {40, 41, 40, 42};
    public int warriorWinSeqDelay = 400;
    public int[] warriorWinSeq = {43, 44, 45};
    public int warriorLoserSeqDelay = 600;
    public int[] warriorLoserSeq = {34, 46};
    private Sprite monster1;
    public int monster1DownSeqDelay = 150;
    public int[] monster1DownSeq = {47, 48, 47, 49};
    public int monster1UpSeqDelay = 150;
    public int[] monster1UpSeq = {56, 57, 56, 58};
    public int monster1LeftSeqDelay = 150;
    public int[] monster1LeftSeq = {50, 51, 50, 52};
    public int monster1RightSeqDelay = 150;
    public int[] monster1RightSeq = {53, 55, 53, 54};
    private Sprite monster2;
    public int monster2UpSeqDelay = 150;
    public int[] monster2UpSeq = {68, 69, 68, 70};
    public int monster2LeftSeqDelay = 150;
    public int[] monster2LeftSeq = {62, 63, 62, 64};
    public int monster2DownSeqDelay = 150;
    public int[] monster2DownSeq = {59, 60, 59, 61};
    public int monster2RightSeqDelay = 150;
    public int[] monster2RightSeq = {65, 66, 65, 67};
    private TiledLayer lago1;
    public int matinhoAguaLago1;
    private TiledLayer gramado;
    private TiledLayer lago2;
    private Sprite pointBall;
    public int pointBallSeqDelay = 200;
    public int[] pointBallSeq = {82, 83};
    private TiledLayer caminho;
    private TiledLayer tree;
    private TiledLayer ambientes;
    private Sprite armadilhaV;
    public int armadilhaVseq001Delay = 2000;
    public int[] armadilhaVseq001 = {5, 73, 74, 73, 5};
    private Sprite armadilhaH;
    public int armadilhaHseq001Delay = 2000;
    public int[] armadilhaHseq001 = {4, 71, 72, 71, 4};
    private TiledLayer armadilhas;
    public int trapHorizontalArmadilhas;
    public int trapVerticalArmadilhas;
    //</editor-fold>//GEN-END:|fields|0|
    private Sprite monster3;
    private Sprite monster4;

    //<editor-fold defaultstate="collapsed" desc=" Generated Methods ">//GEN-BEGIN:|methods|0|
    //</editor-fold>//GEN-END:|methods|0|

    public Image getCenario() throws java.io.IOException {//GEN-BEGIN:|1-getter|0|1-preInit
        if (cenario == null) {//GEN-END:|1-getter|0|1-preInit
            // write pre-init user code here
            cenario = Image.createImage("/cenario.png");//GEN-BEGIN:|1-getter|1|1-postInit
        }//GEN-END:|1-getter|1|1-postInit
        // write post-init user code here
        return this.cenario;//GEN-BEGIN:|1-getter|2|
    }
//GEN-END:|1-getter|2|

    public Sprite getWarrior() throws java.io.IOException {//GEN-BEGIN:|2-getter|0|2-preInit
        if (warrior == null) {//GEN-END:|2-getter|0|2-preInit
            // write pre-init user code here
            warrior = new Sprite(getCenario(), 24, 24);//GEN-BEGIN:|2-getter|1|2-postInit
            warrior.setFrameSequence(warriorUpSeq);//GEN-END:|2-getter|1|2-postInit
            // write post-init user code here
        }//GEN-BEGIN:|2-getter|2|
        return warrior;
    }
//GEN-END:|2-getter|2|

    public Sprite getMonster1() throws java.io.IOException {//GEN-BEGIN:|9-getter|0|9-preInit
        if (monster1 == null) {//GEN-END:|9-getter|0|9-preInit
            // write pre-init user code here
            monster1 = new Sprite(getCenario(), 24, 24);//GEN-BEGIN:|9-getter|1|9-postInit
            monster1.setFrameSequence(monster1DownSeq);//GEN-END:|9-getter|1|9-postInit
            // write post-init user code here
        }//GEN-BEGIN:|9-getter|2|
        return monster1;
    }
//GEN-END:|9-getter|2|

    public Sprite getMonster2() throws java.io.IOException {//GEN-BEGIN:|14-getter|0|14-preInit
        if (monster2 == null) {//GEN-END:|14-getter|0|14-preInit
            // write pre-init user code here
            monster2 = new Sprite(getCenario(), 24, 24);//GEN-BEGIN:|14-getter|1|14-postInit
            monster2.setFrameSequence(monster2UpSeq);//GEN-END:|14-getter|1|14-postInit
            // write post-init user code here
        }//GEN-BEGIN:|14-getter|2|
        return monster2;
    }
//GEN-END:|14-getter|2|

//    public Sprite getMonster3() throws java.io.IOException{
//         if (monster3 == null) {
//            // write pre-init user code here
//            monster3 = new Sprite(getCenario(), 24, 24);
//            monster3.setFrameSequence(monster1DownSeq);
//            // write post-init user code here
//        }
//        return monster3;
//    }
//
//    public Sprite getMonster4() throws java.io.IOException{
//         if (monster4 == null) {
//            // write pre-init user code here
//            monster4 = new Sprite(getCenario(), 24, 24);
//            monster4.setFrameSequence(monster1DownSeq);
//            // write post-init user code here
//        }
//        return monster4;
//    }

    public TiledLayer getLago1() throws java.io.IOException {//GEN-BEGIN:|19-getter|0|19-preInit
        if (lago1 == null) {//GEN-END:|19-getter|0|19-preInit
            // write pre-init user code here
            lago1 = new TiledLayer(3, 3, getCenario(), 24, 24);//GEN-BEGIN:|19-getter|1|19-midInit
            matinhoAguaLago1 = lago1.createAnimatedTile(matinhoAguaseq001[0]);
            int[][] tiles = {
                { 17, 23, 19 },
                { 22, matinhoAguaLago1, 21 },
                { 22, 25, 21 }
            };//GEN-END:|19-getter|1|19-midInit
            // write mid-init user code here
            for (int row = 0; row < 3; row++) {//GEN-BEGIN:|19-getter|2|19-postInit
                for (int col = 0; col < 3; col++) {
                    lago1.setCell(col, row, tiles[row][col]);
                }
            }
        }//GEN-END:|19-getter|2|19-postInit
        // write post-init user code here
        return lago1;//GEN-BEGIN:|19-getter|3|
    }
//GEN-END:|19-getter|3|

    public TiledLayer getLago2() throws java.io.IOException {//GEN-BEGIN:|22-getter|0|22-preInit
        if (lago2 == null) {//GEN-END:|22-getter|0|22-preInit
            // write pre-init user code here
            lago2 = new TiledLayer(3, 1, getCenario(), 24, 24);//GEN-BEGIN:|22-getter|1|22-midInit
            int[][] tiles = {
                { 20, 24, 18 }
            };//GEN-END:|22-getter|1|22-midInit
            // write mid-init user code here
            for (int row = 0; row < 1; row++) {//GEN-BEGIN:|22-getter|2|22-postInit
                for (int col = 0; col < 3; col++) {
                    lago2.setCell(col, row, tiles[row][col]);
                }
            }
        }//GEN-END:|22-getter|2|22-postInit
        // write post-init user code here
        return lago2;//GEN-BEGIN:|22-getter|3|
    }
//GEN-END:|22-getter|3|

    public TiledLayer getGramado() throws java.io.IOException {//GEN-BEGIN:|23-getter|0|23-preInit
        if (gramado == null) {//GEN-END:|23-getter|0|23-preInit
            // write pre-init user code here
            gramado = new TiledLayer(19, 20, getCenario(), 24, 24);//GEN-BEGIN:|23-getter|1|23-midInit
            int[][] tiles = {
                { 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76 },
                { 76, 0, 0, 0, 0, 0, 0, 0, 0, 76, 0, 0, 0, 0, 0, 0, 0, 0, 76 },
                { 76, 0, 76, 76, 0, 76, 76, 76, 0, 76, 0, 76, 76, 76, 0, 76, 76, 0, 76 },
                { 76, 0, 76, 76, 0, 76, 76, 76, 0, 76, 0, 76, 76, 76, 0, 76, 76, 0, 76 },
                { 76, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 76 },
                { 76, 0, 76, 76, 0, 76, 0, 76, 76, 76, 76, 76, 0, 76, 0, 76, 76, 0, 76 },
                { 76, 0, 0, 0, 0, 76, 0, 0, 0, 76, 0, 0, 0, 76, 0, 0, 0, 0, 76 },
                { 76, 76, 76, 76, 0, 76, 76, 76, 0, 76, 0, 76, 76, 76, 0, 76, 76, 76, 76 },
                { 76, 76, 76, 76, 0, 76, 0, 0, 0, 0, 0, 0, 0, 76, 0, 76, 76, 76, 76 },
                { 76, 76, 76, 76, 0, 76, 0, 0, 0, 0, 0, 0, 0, 76, 0, 76, 76, 76, 76 },
                { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
                { 76, 76, 76, 76, 0, 76, 0, 76, 76, 76, 76, 76, 0, 76, 0, 76, 76, 76, 76 },
                { 76, 0, 0, 0, 0, 0, 0, 0, 0, 76, 0, 0, 0, 0, 0, 0, 0, 0, 76 },
                { 76, 0, 76, 76, 0, 76, 76, 76, 0, 76, 0, 76, 76, 76, 0, 76, 76, 0, 76 },
                { 76, 0, 0, 76, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 76, 0, 0, 76 },
                { 76, 76, 0, 76, 0, 76, 0, 76, 76, 76, 76, 76, 0, 76, 0, 76, 0, 76, 76 },
                { 76, 0, 0, 0, 0, 76, 0, 0, 0, 76, 0, 0, 0, 76, 0, 0, 0, 0, 76 },
                { 76, 0, 76, 76, 76, 76, 76, 76, 0, 76, 0, 76, 76, 76, 76, 76, 76, 0, 76 },
                { 76, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 76 },
                { 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76 }
            };//GEN-END:|23-getter|1|23-midInit
            // write mid-init user code here
            for (int row = 0; row < 20; row++) {//GEN-BEGIN:|23-getter|2|23-postInit
                for (int col = 0; col < 19; col++) {
                    gramado.setCell(col, row, tiles[row][col]);
                }
            }
        }//GEN-END:|23-getter|2|23-postInit
        // write post-init user code here
        return gramado;//GEN-BEGIN:|23-getter|3|
    }
//GEN-END:|23-getter|3|

    public Sprite getPointBall() throws java.io.IOException {//GEN-BEGIN:|24-getter|0|24-preInit
        if (pointBall == null) {//GEN-END:|24-getter|0|24-preInit
            // write pre-init user code here
            pointBall = new Sprite(getCenario(), 24, 24);//GEN-BEGIN:|24-getter|1|24-postInit
            pointBall.setFrameSequence(pointBallSeq);//GEN-END:|24-getter|1|24-postInit
            // write post-init user code here
        }//GEN-BEGIN:|24-getter|2|
        return pointBall;
    }
//GEN-END:|24-getter|2|

    public TiledLayer getCaminho() throws java.io.IOException {//GEN-BEGIN:|26-getter|0|26-preInit
        if (caminho == null) {//GEN-END:|26-getter|0|26-preInit
            // write pre-init user code here
            caminho = new TiledLayer(19, 18, getCenario(), 24, 24);//GEN-BEGIN:|26-getter|1|26-midInit
            int[][] tiles = {
                { 0, 7, 5, 5, 79, 5, 5, 5, 8, 0, 7, 5, 5, 5, 79, 5, 5, 8, 0 },
                { 0, 6, 0, 0, 6, 0, 0, 0, 6, 0, 6, 0, 0, 0, 6, 0, 0, 6, 0 },
                { 0, 6, 0, 0, 6, 0, 0, 0, 6, 0, 6, 0, 0, 0, 6, 0, 0, 6, 0 },
                { 0, 81, 5, 5, 78, 5, 79, 5, 80, 5, 80, 5, 79, 5, 78, 5, 5, 82, 0 },
                { 0, 6, 0, 0, 6, 0, 6, 0, 0, 0, 0, 0, 6, 0, 6, 0, 0, 6, 0 },
                { 0, 10, 5, 5, 82, 0, 10, 5, 8, 0, 7, 5, 9, 0, 81, 5, 5, 9, 0 },
                { 0, 0, 0, 0, 6, 0, 0, 0, 6, 0, 6, 0, 0, 0, 6, 0, 0, 0, 0 },
                { 0, 0, 0, 0, 6, 0, 7, 5, 80, 79, 80, 5, 8, 0, 6, 0, 0, 0, 0 },
                { 0, 0, 0, 0, 6, 0, 6, 77, 77, 77, 77, 77, 6, 0, 6, 0, 0, 0, 0 },
                { 5, 5, 5, 5, 78, 5, 78, 5, 5, 5, 5, 5, 78, 5, 78, 11, 12, 13, 5 },
                { 0, 0, 0, 0, 6, 0, 6, 0, 0, 0, 0, 0, 6, 0, 6, 0, 0, 0, 0 },
                { 0, 7, 5, 5, 78, 5, 80, 5, 8, 0, 7, 5, 80, 5, 78, 5, 5, 8, 0 },
                { 0, 6, 0, 0, 6, 0, 0, 0, 6, 0, 6, 0, 0, 0, 6, 0, 0, 6, 0 },
                { 0, 10, 8, 0, 81, 5, 79, 5, 80, 5, 80, 5, 79, 5, 82, 0, 7, 9, 0 },
                { 0, 0, 6, 0, 6, 0, 6, 0, 0, 0, 0, 0, 6, 0, 6, 0, 6, 0, 0 },
                { 0, 7, 80, 5, 9, 0, 10, 5, 8, 0, 7, 5, 9, 0, 10, 5, 80, 8, 0 },
                { 0, 6, 0, 0, 0, 0, 0, 0, 6, 0, 6, 0, 0, 0, 0, 0, 0, 6, 0 },
                { 0, 10, 5, 5, 5, 5, 5, 5, 80, 5, 80, 5, 5, 5, 5, 5, 5, 9, 0 }
            };//GEN-END:|26-getter|1|26-midInit
            // write mid-init user code here
            for (int row = 0; row < 18; row++) {//GEN-BEGIN:|26-getter|2|26-postInit
                for (int col = 0; col < 19; col++) {
                    caminho.setCell(col, row, tiles[row][col]);
                }
            }
        }//GEN-END:|26-getter|2|26-postInit
        // write post-init user code here
        return caminho;//GEN-BEGIN:|26-getter|3|
    }
//GEN-END:|26-getter|3|

    public TiledLayer getTree() throws java.io.IOException {//GEN-BEGIN:|31-getter|0|31-preInit
        if (tree == null) {//GEN-END:|31-getter|0|31-preInit
            // write pre-init user code here
            tree = new TiledLayer(13, 10, getCenario(), 24, 24);//GEN-BEGIN:|31-getter|1|31-midInit
            int[][] tiles = {
                { 0, 1, 1, 0, 0, 0, 2, 0, 0, 0, 1, 0, 0 },
                { 0, 1, 0, 0, 2, 0, 0, 0, 0, 0, 0, 1, 0 },
                { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
                { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
                { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
                { 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
                { 2, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
                { 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
                { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
                { 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 1 }
            };//GEN-END:|31-getter|1|31-midInit
            // write mid-init user code here
            for (int row = 0; row < 10; row++) {//GEN-BEGIN:|31-getter|2|31-postInit
                for (int col = 0; col < 13; col++) {
                    tree.setCell(col, row, tiles[row][col]);
                }
            }
        }//GEN-END:|31-getter|2|31-postInit
        // write post-init user code here
        return tree;//GEN-BEGIN:|31-getter|3|
    }
//GEN-END:|31-getter|3|

    public TiledLayer getAmbientes() throws java.io.IOException {//GEN-BEGIN:|32-getter|0|32-preInit
        if (ambientes == null) {//GEN-END:|32-getter|0|32-preInit
            // write pre-init user code here
            ambientes = new TiledLayer(16, 14, getCenario(), 24, 24);//GEN-BEGIN:|32-getter|1|32-midInit
            int[][] tiles = {
                { 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 0, 0 },
                { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
                { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
                { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
                { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
                { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
                { 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
                { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
                { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
                { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
                { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
                { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
                { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
                { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3 }
            };//GEN-END:|32-getter|1|32-midInit
            // write mid-init user code here
            for (int row = 0; row < 14; row++) {//GEN-BEGIN:|32-getter|2|32-postInit
                for (int col = 0; col < 16; col++) {
                    ambientes.setCell(col, row, tiles[row][col]);
                }
            }
        }//GEN-END:|32-getter|2|32-postInit
        // write post-init user code here
        return ambientes;//GEN-BEGIN:|32-getter|3|
    }
//GEN-END:|32-getter|3|

    public void updateLayerManagerForFloresta(LayerManager lm) throws java.io.IOException {//GEN-LINE:|33-updateLayerManager|0|33-preUpdate
        // write pre-update user code here
        getArmadilhas().setPosition(96, 95);//GEN-BEGIN:|33-updateLayerManager|1|33-postUpdate
        getArmadilhas().setVisible(true);
        lm.append(getArmadilhas());
        getArmadilhaH().setPosition(217, 96);
        getArmadilhaH().setVisible(true);
        lm.append(getArmadilhaH());
        getArmadilhaV().setPosition(96, 193);
        getArmadilhaV().setVisible(true);
        lm.append(getArmadilhaV());
        getMonster2().setPosition(203, 217);
        getMonster2().setVisible(true);
        lm.append(getMonster2());
        getMonster1().setPosition(169, 216);
        getMonster1().setVisible(true);
        lm.append(getMonster1());
        getWarrior().setPosition(219, 336);
        getWarrior().setVisible(true);
        lm.append(getWarrior());
        getAmbientes().setPosition(49, 48);
        getAmbientes().setVisible(true);
        lm.append(getAmbientes());
        getTree().setPosition(23, 46);
        getTree().setVisible(true);
        lm.append(getTree());
        getLago2().setPosition(361, 264);
        getLago2().setVisible(true);
        lm.append(getLago2());
        getLago1().setPosition(361, 168);
        getLago1().setVisible(true);
        lm.append(getLago1());
        getCaminho().setPosition(0, 24);
        getCaminho().setVisible(true);
        lm.append(getCaminho());
        getGramado().setPosition(0, 0);
        getGramado().setVisible(true);
        lm.append(getGramado());//GEN-END:|33-updateLayerManager|1|33-postUpdate
        // write post-update user code here
//        getMonster3().setPosition(217, 216);
//        getMonster3().setVisible(true);
//        lm.append(getMonster3());
//        getMonster4().setPosition(241, 216);
//        getMonster4().setVisible(true);
//        lm.append(getMonster4());
    }//GEN-BEGIN:|33-updateLayerManager|2|
//GEN-END:|33-updateLayerManager|2|

    public TiledLayer getArmadilhas() throws java.io.IOException {//GEN-BEGIN:|1250-getter|0|1250-preInit
        if (armadilhas == null) {//GEN-END:|1250-getter|0|1250-preInit
            // write pre-init user code here
            armadilhas = new TiledLayer(10, 11, getCenario(), 24, 24);//GEN-BEGIN:|1250-getter|1|1250-midInit
            trapHorizontalArmadilhas = armadilhas.createAnimatedTile(trapHorizontalseq001[0]);
            trapVerticalArmadilhas = armadilhas.createAnimatedTile(trapVerticalseq001[0]);
            int[][] tiles = {
                { 0, 0, 0, 0, 0, trapHorizontalArmadilhas, 0, 0, 0, 0 },
                { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
                { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
                { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
                { trapVerticalArmadilhas, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
                { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
                { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
                { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
                { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
                { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
                { 0, 0, 0, 0, 0, 0, 0, 0, 0, trapHorizontalArmadilhas }
            };//GEN-END:|1250-getter|1|1250-midInit
            // write mid-init user code here
            for (int row = 0; row < 11; row++) {//GEN-BEGIN:|1250-getter|2|1250-postInit
                for (int col = 0; col < 10; col++) {
                    armadilhas.setCell(col, row, tiles[row][col]);
                }
            }
        }//GEN-END:|1250-getter|2|1250-postInit
        // write post-init user code here
        return armadilhas;//GEN-BEGIN:|1250-getter|3|
    }
//GEN-END:|1250-getter|3|

    public Sprite getArmadilhaH() throws java.io.IOException {//GEN-BEGIN:|1251-getter|0|1251-preInit
        if (armadilhaH == null) {//GEN-END:|1251-getter|0|1251-preInit
            // write pre-init user code here
            armadilhaH = new Sprite(getCenario(), 24, 24);//GEN-BEGIN:|1251-getter|1|1251-postInit
            armadilhaH.setFrameSequence(armadilhaHseq001);//GEN-END:|1251-getter|1|1251-postInit
            // write post-init user code here
        }//GEN-BEGIN:|1251-getter|2|
        return armadilhaH;
    }
//GEN-END:|1251-getter|2|

    public Sprite getArmadilhaV() throws java.io.IOException {//GEN-BEGIN:|1253-getter|0|1253-preInit
        if (armadilhaV == null) {//GEN-END:|1253-getter|0|1253-preInit
            // write pre-init user code here
            armadilhaV = new Sprite(getCenario(), 24, 24);//GEN-BEGIN:|1253-getter|1|1253-postInit
            armadilhaV.setFrameSequence(armadilhaVseq001);//GEN-END:|1253-getter|1|1253-postInit
            // write post-init user code here
        }//GEN-BEGIN:|1253-getter|2|
        return armadilhaV;
    }
//GEN-END:|1253-getter|2|



}
